<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //ES5
        var m=100,m=200;
        console.log(m);  //200

        //ES6
        let n=100;
        let n=200;  //Identifier 'n' has already been declared,n已经被声明
        console.log(n);
    </script>
</body>
</html>